package com.yic.module.qms.controller.admin.inspectprocess.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yic.framework.excel.core.annotations.DictFormat;
import com.yic.framework.excel.core.convert.DictConvert;


/**
 * 过程检验 Excel VO
 *
 * @author 系统管理员
 */
@Data
public class InspectProcessExcelVO {

    @ExcelProperty("序号")
    private Long id;

    @ExcelProperty("检验单号")
    private String code;

    @ExcelProperty("工厂")
    private Long factoryId;

    @ExcelProperty("检验方案ID")
    private Long schemeId;

    @ExcelProperty("生产计划")
    private Long planId;

    @ExcelProperty("生产工单")
    private Long moId;

    @ExcelProperty("产品ID")
    private Long itemId;

    @ExcelProperty("产品生产ID")
    private Long itemProduceId;

    @ExcelProperty("工序ID")
    private Long processId;

    @ExcelProperty("检测数量")
    private BigDecimal inspectAmount;

    @ExcelProperty("合格数量")
    private BigDecimal qualifiedAmount;

    @ExcelProperty("不合格数量")
    private BigDecimal unqualifiedAmount;

    @ExcelProperty(value = "检测结果", converter = DictConvert.class)
    @DictFormat("qms_inspect_result") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer inspectResult;

    @ExcelProperty("检测人")
    private Long userId;

    @ExcelProperty("检测时间")
    private LocalDateTime inspectTime;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
